/*
 * @Author: zhangwenqiang
 * @Date: 2021-07-25 12:50:11
 * @LastEditors: OBKoro1
 * @LastEditTime: 2021-07-25 23:20:31
 * @FilePath: /my-project/src/settings.js
 */
import * as Private from './my.private'
export default {
  title: '运营系统',

  printRequest () {
    return process.env.NODE_ENV === 'development' ? Private.enablePrintRequest : false
  },

  isDevelopment () {
    return process.env.NODE_ENV === 'development'
  },
  /**
   * 是否启用mock
   */
  enableMock: (url) => {
    return (process.env.NODE_ENV === 'development' ? Private.enableMock : false) && Private.excludeMock(url)
  },
  /**
   * @type {boolean} true | false
   * @description Whether show the settings right-panel
   */
  showSettings: true,
  /**
   * @type {boolean} true | false
   * @description Whether need tagsView
   */
  tagsView: true,
  /**
   * @type {boolean} true | false
   * @description Whether fix the header
   */
  fixedHeader: false,
  /**
   * @type {boolean} true | false
   * @description Whether show the logo in sidebar
   */
  sidebarLogo: false,
  /**
   * @type {string | array} 'production' | ['production', 'development']
   * @description Need show err logs component.
   * The default is only used in the production env
   * If you want to also use it in dev, you can pass ['production', 'development']
   */
  errorLog: 'production'
}
